const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    data: "",
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let {
      id
    } = options;
    this.id = id;
    this.getEngineerInfo();
  },


  getEngineerInfo() {
    app.ajax({
      url: "Partner/EquipmentManagement/detail",
      data: {
        id: this.id
      },
      success: res => {
        if (res.data.code == 1000) {
          this.setData({
            data: res.data.data
          })
        } else {
          app.showToast(res.data.message)
        }
      },
      error: e => {
        app.showToast("网络错误!请稍后再试~~~");
      }
    })
  },







})